<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui"> 
<h:head>
	<title>Página de Edição</title>
</h:head> 
<h:body>
	
	<h:form>	
		<p:panel header="Atualização de Clientes" style="width: 400px;">
			<p:messages id="messages"/>
			<p:panelGrid id="painel" columns="2" >
				<h:outputText value="CPF: *" />
				<p:inputText id="cpf" value="#{clienteBean.cliente.cpf}" required="true" requiredMessage="Insira o CPF">
					<f:validateLength minimum="6" maximum="11"  />
				</p:inputText>
				
				<h:outputText value="E-Mail: *" />
				<p:inputText id="email" value="#{clienteBean.cliente.email}" required="true" requiredMessage="Insira o E-Mail">
					<f:validateLength minimum="4" />
				</p:inputText>
			</p:panelGrid>
			
			<p:commandButton action="#{clienteBean.atualizarCliente()}" value="Atualizar" update="painel" style="margin-top: 10; margin-left: 0"/>
		</p:panel>
	</h:form>
	
</h:body> 
</html>
